
package com.example.java;
import java.util.*;

public class TestRef {
	public static void main(String[] args) {
		Obj2 a = new Obj2();
		Obj2 b = (Obj2) a.clone();
		b.changeAr();
		System.out.println(a.getAr());
		System.out.println(b.getAr());
		
		
		Obj a1 = new Obj();
		Obj b1 = (Obj) a1.clone();
		b1.changeBr();
		System.out.println(a1.getBirth());
		System.out.println(b1.getBirth());
		
		int tt1=6;
		int tt2=tt1;
		tt2=7;
		System.out.println(tt1);
		System.out.println(tt2);
		
}

}
